package com.interauto.bean;

import com.interauto.bean.httpinfo.HttpResPonseBean;

/**
 * 通用的内容返回结果体
 */
public class AutoResAllBean {
    /**
     * 是http还是redis还是mysql还是rps
     * 1=http;2=redis;3=mysql
     */
    private Integer type;
    /**
     * 如果上面=1，下面这个就有值，后面新增加它，就在该bean继续增加对象
     */
    private HttpResPonseBean httpResPonseBean;
    /**
     * 结果内容对象是json，还是xml，还是文本文件,还是其它
     * 1=json,2=xml,3=文本
     */
    private Integer restype;

    /**
     * 根据restype的不同，该obj就是对象的对象，例如=1，那该值就是ReadContext
     */
    private Object objres;

    /**
     * 要校验的内容
     */
    private String checkinfo;
    /**
     * 预期结果
     */
    private String expectinfo;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public HttpResPonseBean getHttpResPonseBean() {
        return httpResPonseBean;
    }

    public void setHttpResPonseBean(HttpResPonseBean httpResPonseBean) {
        this.httpResPonseBean = httpResPonseBean;
    }

    public Integer getRestype() {
        return restype;
    }

    public void setRestype(Integer restype) {
        this.restype = restype;
    }

    public Object getObjres() {
        return objres;
    }

    public void setObjres(Object objres) {
        this.objres = objres;
    }

    public String getCheckinfo() {
        return checkinfo;
    }

    public void setCheckinfo(String checkinfo) {
        this.checkinfo = checkinfo;
    }

    public String getExpectinfo() {
        return expectinfo;
    }

    public void setExpectinfo(String expectinfo) {
        this.expectinfo = expectinfo;
    }

    @Override
    public String toString() {
        return "AutoResAllBean{" +
                "type=" + type +
                ", httpResPonseBean=" + httpResPonseBean +
                ", restype=" + restype +
                ", objres=" + objres +
                ", checkinfo='" + checkinfo + '\'' +
                ", expectinfo='" + expectinfo + '\'' +
                '}';
    }
}
